package com.king.wms.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.king.wms.mapper.StorerMapper;
import com.king.wms.pojo.Storer;

@Service
@Transactional
public class StorerService {
	@Autowired
	private StorerMapper storerMapper;

	public void update(Storer storer) {
		storerMapper.update(storer);
	}

	public void delete(Integer storer_id) {
		storerMapper.deleteByPrimaryKey(storer_id);
	}

	public void insert(Storer storer) {
		storerMapper.insert(storer);
	}

	public List<Storer> findAll() {
		//StorerExample example = new StorerExample();
		return storerMapper.findAll();
	}

	public Storer findStorerByStorerkey(Integer storerk_id) {
		return storerMapper.selectByPrimaryKey(storerk_id);
	}


}
